<?php

namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Doctrine\Common\Collections\ArrayCollection;
use Agp\CoreBundle\Entity\ListaPreco;

/**
 * Agp\CoreBundle\Entity\SetorCoordenada
 *
 * @ORM\Table(name="setor_coordenada")
 * @ORM\Entity()
 * 
 * @ORM\HasLifecycleCallbacks
 */
class SetorCoordenada
{
    /**
     * @var integer $codAmbiente
     *
     * @ORM\Column(name="cod_setor_coordenada", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     * 
     */
    protected $codSetorCoordenada;
    
    /**
     * @var string $x1
     *
     * @ORM\Column(name="x1", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $x1;
    
    /**
     * @var string $y1
     *
     * @ORM\Column(name="y1", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $y1;
    
    /**
     * @var string $x2
     *
     * @ORM\Column(name="x2", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $x2;
    
    /**
     * @var string $y2
     *
     * @ORM\Column(name="y2", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $y2;
    
    /**
     * @var string $w
     *
     * @ORM\Column(name="w", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $w;
    
    /**
     * @var string $h
     *
     * @ORM\Column(name="h", type="integer", nullable=false)
     * @Assert\NotBlank()
     * 
     */
    protected $h;
   
    public function getCodSetorCoordenada() {
        return $this->codSetorCoordenada;
    }

    public function getX1() {
        return $this->x1;
    }

    public function getY1() {
        return $this->y1;
    }

    public function getX2() {
        return $this->x2;
    }

    public function getY2() {
        return $this->y2;
    }

    public function getW() {
        return $this->w;
    }

    public function getH() {
        return $this->h;
    }

    public function setCodSetorCoordenada($codSetorCoordenada) {
        $this->codSetorCoordenada = $codSetorCoordenada;
    }

    public function setX1($x1) {
        $this->x1 = $x1;
    }

    public function setY1($y1) {
        $this->y1 = $y1;
    }

    public function setX2($x2) {
        $this->x2 = $x2;
    }

    public function setY2($y2) {
        $this->y2 = $y2;
    }

    public function setW($w) {
        $this->w = $w;
    }

    public function setH($h) {
        $this->h = $h;
    }
}